/*
 *****************************************************************************
 * Copyright (C) 2005-2011 UC Mobile Limited. All Rights Reserved
 * File			: CommonAutomatedInfoData.h
 *
 * Description	: 常用自动化测试数据项
 *
 * Author		: daijb@ucweb.com
 * History		:
 *			   Creation, 2014/03/14, daijb, Create the file
 ******************************************************************************
 **/

#if defined(UC_COMMON_AUTOMATED_TEST) || defined(UC_MONKEY_TEST)

/// 自动化项目数据结构
typedef struct
{
    NSString*    m_itemName;                ///< 自动化项名称
    NSString*    m_accessibilityLabel;      ///< 自动化可获取文本
    BOOL         m_isAccessibility;         ///< 是否可以自动获取
    SEL          m_callbackSel;             ///< 点击项时回调接口
    
}AutomatedItemInfo;

/// 项目列表
const AutomatedItemInfo g_itemInfo[] =
{
    //菜单
    {
        @"菜单", @"AutomatedMenu", YES, @selector(onClickAutomatedMenu:)
    },
    //设置
    {
        @"设置", @"AutomatedSetting", YES, @selector(onClickAutomatedSetting:)
    },
#if defined(UC_MONKEY_TEST)
    {
        @"常规操作", @"AutomatedActions", YES, @selector(onClickAutomatedActions:)
    },
#endif
    0
};

/// 菜单列表
const AutomatedItemInfo g_menuInfo[] =
{
    //日夜间切换
    {
        @"日夜间切换", @"DayAndNightSwitch", YES, @selector(onClickDayAndNightSwitchSetting:)
    },
    //进入全屏/退出全屏
    {
        @"进入全屏/退出全屏", @"FullScreenSwitch", YES, @selector(onClickFullScreenSwitchSetting:)
    },
    //无图模式开关
    {
        @"无图模式开关", @"NoPictureMode", YES, @selector(onClickNoPictureModeSetting:)
    },
#ifndef UC_MONKEY_TEST
    //退出浏览器
    {
        @"退出浏览器", @"ExitBrowser", YES, @selector(onClickExitBrowserSetting:)
    },
#else
    {
        @"极速模式开关", @"SpeedMode", YES, @selector(onClickSpeedModeSetting:)
    },
#endif
    0
};

/// 设置列表
const AutomatedItemInfo g_settingInfo[] =
{
    //清除网页缓存
    {
        @"清除网页缓存", @"ClearWebPageCache", YES, @selector(onClickClearWebPageCacheSetting:)
    },
    //广告过滤开关
    {
        @"广告过滤开关", @"AdBlock", YES, @selector(onClickAdBlockSetting:)
    },
    //云加速开关
    {
        @"云加速开关", @"CloudSpeedUp", YES, @selector(onClickCloudSpeedUpSetting:)
    },
    //精简排版开关
    {
        @"精简排版开关", @"ViewModeFillScreen", YES, @selector(onClickViewModeFillScreenSetting:)
    },
    //网页预加载开关
    {
        @"网页预加载开关", @"ReloadWebPage", YES, @selector(onClickReloadWebPageSetting:)
    },
    //清除所有数据
    {
        @"清除所有数据", @"ClearAllData", YES, @selector(onClickClearAllDataSetting:)
    },
    //清除本地下载任务
    {
        @"清除本地下载任务", @"ClearLocalDownloadTask", YES, @selector(onClickClearLocalDownloadTaskSetting:)
    },
    //恢复默认设置
    {
        @"恢复默认设置", @"RestoreDefaultSetting", YES, @selector(onClickRestoreDefaultSettingSetting:)
    },
#if defined(UC_MONKEY_TEST)
    //switch UA
    {
        @"切换UA", @"SwitchUserAgent", YES, @selector(onClickSwitchUASetting:)
    },
#endif
    0
};


const AutomatedItemInfo g_actionsInfo[] =
{
    {
        @"goBack", @"goBack", YES, @selector(onClickGoBack:)
    },
    {
        @"goForward", @"goForward", YES, @selector(onClickGoForward:)
    },
    {
        @"stopLoading", @"stopLoading", YES, @selector(onClickStopLoading:)
    },
    {
        @"reload", @"reload", YES, @selector(onClickReload:)
    },
    0
};

#endif
